package com.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.store.domain.R;
import com.store.domain.dto.BookDto;
import com.store.domain.entity.Book;

/**
 * 图书表(Book)表服务接口
 *
 * @author yu
 * @since 2024-06-26 01:12:42
 */
public interface BookService extends IService<Book> {

    R getPageBook(Integer pageNum, Integer pageSize, BookDto bookDto);

    R addBook(BookDto bookDto);

    R deleteBookById(Integer id);

    R getBookById(Integer id);

    R updateBook(BookDto bookDto);

    R updateBookStatus(Integer id, Integer status);

    R deleteBatchByIds(Integer[] ids);

    R showBooks();

    R searchBook(String query);
}


